<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>

<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title></title>
	<link type="text/css" rel="stylesheet" href="http://127.0.0.1/0203_review/Static/hdjs/hdjs.css"/>
	<script type="text/javascript" src="http://127.0.0.1/0203_review/Static/hdjs/hdjs.min.js"></script>
</head>
<body>
	<div class="hd-menu-list">
	    <ul>
	        <li><a href="<?php echo U('Category/index');?>">栏目列表</a></li>
	        <li class="active"><a href="<?php echo U('Category/add');?>">添加栏目</a></li>

	        <li><a href="#">更新栏目缓存</a></li>
	    </ul>
	</div>

	<form action="" method="post">
		<table class="hd-table hd-table-form hd-form">
		    <thead>
		    <tr>
		        <td colspan="2">添加栏目</td>
		    </tr>
		    </thead>
		    <tbody>
		    
		    <tr>
		        <th>栏目名称</th>
		        <td>
		            <input type="text" name="cname" value="<?php echo $data['cname'];?>">
		        </td>
		    </tr>
		    <tr>
		        <th width="100">所属栏目</th>
		        <td>
		            <select name="pid">
		                <option value="0">顶级栏目</option>
		                <?php foreach ($category as $k=>$c){?>
			                <option <?php echo $c['disabled'];?>     <?php if($c['cid']==$hd['get']['pid']){ ?> selected="" <?php } ?> value="<?php echo $c['cid'];?>"><?php echo $c['_name'];?></option>
			            <?php }?>
		            </select>
		        </td>
		    </tr>
		    <tr>
		        <th>描述</th>
		        <td><input type="text" value="<?php echo $data['desc'];?>" name="desc" id=""></td>
		        
		    </tr>
		    <!-- <tr>
		    	<th></th>
		    	<td>
		    		<select name="pid">
		                <option value="0">顶级栏目</option>
		                <option value="0">1</option>
		                <option value="0" disabled="">2</option>
		                <option value="0">3</option>
		            </select>
		    	</td>
		    </tr> -->
		    
		    <tr>
		        <th>静态目录</th>
		        <td><input type="text" name="htmldir" id=""></td>
		    </tr>
		    <tr>
		        <th>显示</th>
		        <td>
		            <label><input type="radio" name="is_show" checked="" value="1"> 显示</label>
		            <label><input type="radio" name="is_show" value="0"> 隐藏</label>
		        </td>
		    </tr>
		    <tr>
		        <th>栏目静态</th>
		        <td>
		            <label><input type="radio" name="is_listhtml" checked="" value="1"> 显示</label>
		            <label><input type="radio" name="is_listhtml" value="0"> 隐藏</label>
		        </td>
		    </tr>
		    <tr>
		        <th>文章静态</th>
		        <td>
		            <label><input type="radio" name="is_archtml" checked="" value="1"> 显示</label>
		            <label><input type="radio" name="is_archtml" value="0"> 隐藏</label>
		        </td>
		    </tr>
		    <tr>
		    	<th></th>
		    	<td><input type="submit" value="保存" class="hd-btn"></td>
		    </tr>
		    </tbody>
		</table>
	</form>
</body>
</html>